package adv5;

import java.io.*;

public class SetOut {

	public static void main(String[] args) throws IOException {
		// 修改目的地
		System.setOut(new PrintStream(new File("E:/Temp/out.txt")));
		for (int i = 1; i <= 1000; i++) {
			System.out.print(i + " ");
			if (i % 10 == 0)
				System.out.println();
		}
	}

}
